from django.conf.urls import url
from django.urls import path
from . import views
from django.views import static
from django.conf import settings

app_name = 'sims'
urlpatterns = [
    path('schedule/', views.schedule, name='schedule'),
    path('', views.index, name='index'),
    path('login/', views.login, name='login'),
    path('logout', views.logout, name='logout'),
    path('history/', views.history, name='history'),
    path('register/', views.register, name='register'),
    path('to_do/', views.to_do, name='to_do'),
    path('user_control/', views.user_control, name='user_control'),
    path('register_success/', views.register_success, name='register_success'),
    url(r'^static/(?P<path>.*)$', static.serve, {'document_root': settings.STATIC_ROOT}, name='media'),
    url(r'^images/(?P<path>.*)$', static.serve, {'document_root': settings.IMAGES_ROOT}, name='media'),
]
